﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:Bookworm.Controls;assembly=Bookworm.Controls">
    
    <!--BWDefault.CircularButton -->
    <ControlTemplate x:Key="BWDefault.CircularButton"
                     TargetType="{x:Type Button}">
        <ControlTemplate.Resources>
            <Storyboard x:Key="MouseOver">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                               Storyboard.TargetName="contentPresenter"
                                               Storyboard.TargetProperty="(UIElement.Opacity)">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000"
                                          Value="1" />
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="MouseOut">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                               Storyboard.TargetName="contentPresenter"
                                               Storyboard.TargetProperty="(UIElement.Opacity)">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                          Value="1" />
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="PressedOn">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                               Storyboard.TargetName="contentPresenter"
                                               Storyboard.TargetProperty="(UIElement.Opacity)">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.0500000"
                                          Value="0.3" />
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="PressedOff">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                               Storyboard.TargetName="contentPresenter"
                                               Storyboard.TargetProperty="(UIElement.Opacity)">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.1000000"
                                          Value="1" />
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
        </ControlTemplate.Resources>
        <Grid>
            <ContentPresenter
        		Opacity="1"
        		x:Name="contentPresenter"
        		Cursor="Hand">
                <ContentPresenter.DataContext>
                    <Image />
                </ContentPresenter.DataContext>
            </ContentPresenter>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard Storyboard="{StaticResource MouseOver}" />
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                    <BeginStoryboard x:Name="MouseOut_BeginStoryboard"
                                     Storyboard="{StaticResource MouseOut}" />
                </Trigger.ExitActions>
            </Trigger>
            <Trigger Property="IsPressed"
                     Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard x:Name="PressedOn_BeginStoryboard"
                                     Storyboard="{StaticResource PressedOn}" />
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                    <BeginStoryboard x:Name="PressedOff_BeginStoryboard"
                                     Storyboard="{StaticResource PressedOff}" />
                </Trigger.ExitActions>
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="False">
                <Setter Property="Opacity"
                        TargetName="contentPresenter"
                        Value="0.2" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <!--BWDefault.ButtonFocus -->
    <Style x:Key="BWDefault.ButtonFocus">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Border>
                        <Rectangle Margin="2"
                                   Stroke="{DynamicResource BWDefault.ButtonFocusBrush}"
                                   StrokeThickness="1"
                                   StrokeDashArray="1 2" />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--BWDefault.Button -->
    <Style x:Key="BWDefault.Button"
           TargetType="{x:Type Button}"
           BasedOn="{x:Null}">
        <Setter Property="FocusVisualStyle"
                Value="{DynamicResource BWDefault.ButtonFocus}" />
        <Setter Property="Background"
                Value="{DynamicResource BWDefault.ButtonBackground}" />
        <Setter Property="BorderBrush"
                Value="{DynamicResource BWDefault.ButtonBorder}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="MouseOver">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Hover"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000"
                                                      Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="MouseOut">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Hover"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="PressedOn">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Pressed"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="PressedOff">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Pressed"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Grid x:Name="Grid">
                        <Border x:Name="Border"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Padding="{TemplateBinding Padding}"
                                Background="{DynamicResource BWDefault.BorderBackground}"
                                CornerRadius="3,3,3,3"
                                BorderBrush="{DynamicResource BWDefault.ButtonGridBorder}" />
                        <Border x:Name="Hover"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Padding="{TemplateBinding Padding}"
                                Background="{DynamicResource BWDefault.ButtonMouseOver}"
                                CornerRadius="3,3,3,3"
                                BorderBrush="{DynamicResource BWDefault.ButtonGridBorder}"
                                Opacity="0" />
                        <Border x:Name="Pressed"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Padding="{TemplateBinding Padding}"
                                Background="{DynamicResource BWDefault.ButtonPressed}"
                                CornerRadius="3,3,3,3"
                                BorderBrush="{DynamicResource BWDefault.ButtonGridBorder}"
                                Opacity="0" />
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                          Margin="{TemplateBinding Padding}"
                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                          RecognizesAccessKey="True" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused"
                                 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonFocusBorder}"
                                    TargetName="Border" />
                        </Trigger>
                        <Trigger Property="IsDefault"
                                 Value="True">
                            <Setter Property="Background" TargetName="Border" Value="{DynamicResource BWDefault.ButtonBackground}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver"
                                 Value="true">
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource MouseOver}" />
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="MouseOut_BeginStoryboard"
                                                 Storyboard="{StaticResource MouseOut}" />
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsPressed"
                                 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonPressedBorder}"
                                    TargetName="Pressed" />
                            <Trigger.EnterActions>
                                <BeginStoryboard x:Name="PressedOn_BeginStoryboard"
                                                 Storyboard="{StaticResource PressedOn}" />
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="PressedOff_BeginStoryboard"
                                                 Storyboard="{StaticResource PressedOff}" />
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="true" />
                        <Trigger Property="IsEnabled"
                                 Value="false">
                            <Setter Property="Background"
                                    Value="{DynamicResource BWDefault.ButtonDisableBG}"
                                    TargetName="Border" />
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonDisableBorder}"
                                    TargetName="Border" />
                            <Setter Property="Foreground"
                                    Value="{DynamicResource BWDefault.ButtonDisableForeGround}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground" Value="{DynamicResource BWDefault.ButtonGoldText}"/>
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="MinWidth"
                Value="20" />
        <Setter Property="MinHeight"
                Value="20" />
        <Setter Property="Padding"
                Value="5,1,5,1" />
        <Setter Property="Margin"
                Value="2,0,2,0" />
        <Style.Triggers>
            <Trigger Property="IsDefault"
                     Value="True">
                <Setter Property="FontWeight" Value="Bold"/>
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Foreground" Value="{DynamicResource BWDefault.ButtonBlackText}"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <!--HorizontalSplitButtonStyle -->
    <Style x:Key="SplitBtnHori" TargetType="{x:Type RadioButton}">
        <Setter Property="FocusVisualStyle"
                Value="{DynamicResource BWDefault.ButtonFocus}" />
        <Setter Property="Background"
                Value="{DynamicResource BWDefault.ButtonBackgroundHori}" />
        <Setter Property="BorderBrush"
                Value="{DynamicResource BWDefault.ButtonBorderHori}" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Foreground" Value="{DynamicResource BWDefault.ButtonGoldText}">
        </Setter>
        <Setter Property="HorizontalContentAlignment"
                Value="Center" />
        <Setter Property="VerticalContentAlignment"
                Value="Center" />
        <Setter Property="Padding"
                Value="1" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RadioButton}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="HoverOn">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Hover"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000"
                                                      Value="0.8" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="HoverOff">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Hover"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="CheckedOn">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Selected"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000"
                                                      Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="CheckedOff">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Selected"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="PressedOn">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Pressed"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000"
                                                      Value="0.6" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="PressedOff">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Pressed"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Grid>
                        <Border x:Name="Border"                                
                                Padding="{TemplateBinding Padding}"
                                CornerRadius="7,7,0,0"
                                BorderThickness="0"
                                Background="{DynamicResource BWDefault.ButtonBackgroundHori}"                              
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderHori}"
                                Opacity="1" />
                        <Border x:Name="BorderOnly"
                                BorderThickness="0"
                                Padding="{TemplateBinding Padding}"
                                Background="{x:Null}"    
                                CornerRadius="7,7,0,0"
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderHori}" />
                        <Border x:Name="Selected"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Padding="{TemplateBinding Padding}"
                                Background="{DynamicResource BWDefault.ButtonCheckedHori}"
                                CornerRadius="7,7,0,0"
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderHori}"
                                Opacity="0" />
                        <Border x:Name="Hover"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Padding="{TemplateBinding Padding}"
                                CornerRadius="7,7,0,0"
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderHori}"
                                Opacity="0"
                                Background="{DynamicResource BWDefault.ButtonFocusBrushHori}" />
                        <Border x:Name="Pressed"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Padding="{TemplateBinding Padding}"
                                CornerRadius="7,7,0,0"
                                Background="{DynamicResource BWDefault.ButtonPressedHori}"
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderHori}"
                                Opacity="0">
                        </Border>
                        <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                                          RecognizesAccessKey="True"
                                          HorizontalAlignment="Center"
                                          VerticalAlignment="Center"
                                          Margin="4,4,4,4" />
                    </Grid>

                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed"
                                 Value="True">
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource PressedOff}"
                                                 x:Name="PressedOff_BeginStoryboard" />
                            </Trigger.ExitActions>
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource PressedOn}"
                                                 x:Name="PressedOn_BeginStoryboard" />
                            </Trigger.EnterActions>
                        </Trigger>
                        <Trigger Property="IsMouseOver"
                                 Value="True">
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource HoverOff}"
                                                 x:Name="HoverOff_BeginStoryboard" />
                            </Trigger.ExitActions>
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource HoverOn}" />
                            </Trigger.EnterActions>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused"
                                 Value="true" />
                        <Trigger Property="IsChecked"
                                 Value="true">
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource CheckedOff}"
                                                 x:Name="CheckedOff_BeginStoryboard" />
                            </Trigger.ExitActions>
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource CheckedOn}"
                                                 x:Name="CheckedOn_BeginStoryboard" />
                            </Trigger.EnterActions>
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="false">
                            <Setter Property="Foreground"
                                    Value="{DynamicResource BWDefault.ButtonDisableForeGround}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsChecked"
                     Value="True">
                <Setter Property="Foreground" Value="{DynamicResource BWDefault.ButtonBlackText}"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <!--SplitButtonDropDownhori-->
    <Style x:Key="BWDefault.SplitButtonDropDown"
           TargetType="{x:Type Button}"
           BasedOn="{x:Null}">
        <Setter Property="FocusVisualStyle"
                Value="{DynamicResource BWDefault.ButtonFocus}" />
        <Setter Property="Background"
                Value="Transparent" />
        <Setter Property="BorderBrush"
                Value="{DynamicResource BWDefault.ButtonBorderSplit}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="MouseOver">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Hover"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000"
                                                      Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="MouseOut">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Hover"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="PressedOn">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Pressed"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="PressedOff">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Pressed"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Grid x:Name="Grid">
                    <Border x:Name="Border"                                                               
                                Background="Transparent"
                                CornerRadius="1,1,0,0"
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderSplit}" />
                        <Border x:Name="Hover"  
                                CornerRadius="1,1,0,0"
                                Background="{DynamicResource BWDefault.ButtonFocusSplit}"                              
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderSplit}"
                                Opacity="0" />
                        <Border x:Name="Pressed"   
                                CornerRadius="1,1,0,0"
                                Background="{DynamicResource BWDefault.ButtonSelectSplit}"                               
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderSplit}"
                                Opacity="0" />
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"                                          
                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                          RecognizesAccessKey="True" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused"
                                 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonFocusBorder}"
                                    TargetName="Border" />
                        </Trigger>
                        <Trigger Property="IsDefault"
                                 Value="True">
                            <Setter Property="Background" TargetName="Border" Value="{DynamicResource BWDefault.ButtonBackground}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver"
                                 Value="true">
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource MouseOver}" />
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="MouseOut_BeginStoryboard"
                                                 Storyboard="{StaticResource MouseOut}" />
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsPressed"
                                 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonPressedBorder}"
                                    TargetName="Pressed" />
                            <Trigger.EnterActions>
                                <BeginStoryboard x:Name="PressedOn_BeginStoryboard"
                                                 Storyboard="{StaticResource PressedOn}" />
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="PressedOff_BeginStoryboard"
                                                 Storyboard="{StaticResource PressedOff}" />
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="true" />
                        <Trigger Property="IsEnabled"
                                 Value="false">
                            <Setter Property="Background"
                                    Value="{DynamicResource BWDefault.ButtonDisableBG}"
                                    TargetName="Border" />
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonDisableBorder}"
                                    TargetName="Border" />
                            <Setter Property="Foreground"
                                    Value="{DynamicResource BWDefault.ButtonDisableForeGround}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground" Value="{DynamicResource BWDefault.ButtonGoldText}"/>
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />        
        <Style.Triggers>
            <Trigger Property="IsDefault"
                     Value="True">
                <Setter Property="FontWeight" Value="Bold"/>
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Foreground" Value="{DynamicResource BWDefault.ButtonBlackText}"/>
            </Trigger>
        </Style.Triggers>
    </Style>
    
    <!--BWDefault.SplitButtonDropDownStyleHori -->
    <Style x:Key="SplitButtonDropDownStyle" TargetType="{x:Type Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid Background="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

                        <Button x:Name="chrome" 
							Style="{DynamicResource BWDefault.SplitButtonDropDown}"
							HorizontalAlignment="Stretch" 
							VerticalAlignment="Stretch"
                            SnapsToDevicePixels="True">
                            <ContentPresenter x:Name="Cp" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Button>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Path.Stroke" TargetName="Cp" Value="#ADADAD"/>
                            <Setter Property="Path.Fill" TargetName="Cp" Value="#ADADAD"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="BWDefault.SplitButtonHorizontal" TargetType="{x:Type Controls:SplitButton}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <!-- SplitButton Template -->
                <ControlTemplate TargetType="{x:Type Controls:SplitButton}">
                    <Grid>
                        <RadioButton x:Name="buttonChrome" 
                                     GroupName="TabGroup"
								HorizontalAlignment="Stretch" 
								VerticalAlignment="Stretch"                                     
                                Style="{DynamicResource SplitBtnHori}"	
                                BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								SnapsToDevicePixels="True">
                            <Grid Background="Transparent" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <Border x:Name="Bd" Margin="1,2,2,2">
                                    <ContentPresenter
										HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
										VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
										Margin="{TemplateBinding Padding}"
										RecognizesAccessKey="True"
										/>
                                </Border>

                                <Path x:Name="path"
									Data="M0,0L3,3 6,0z" 
									Margin="4,1,0,-1" 
									Grid.Row="1"
									Stroke="{TemplateBinding Foreground}" 
									Fill="{TemplateBinding Foreground}" 
									HorizontalAlignment="Center" 
									VerticalAlignment="Center"
									/>

                                <Button x:Name="PART_DropDown"
									Background="{TemplateBinding Background}"
									BorderBrush="{TemplateBinding BorderBrush}"
									Foreground="{TemplateBinding Foreground}"
									IsDefault="{TemplateBinding IsDefault}"
									VerticalAlignment="Stretch" 
									HorizontalAlignment="Stretch"
									Grid.Row="1"
									Margin="0,-2,-2,-2"
									Style="{DynamicResource SplitButtonDropDownStyle}"
									Opacity="0">
                                    <Path Data="M0,0L3,3 6,0z" 
                                          Margin="2,1,0,-1" 
                                          Stroke="{TemplateBinding Foreground}" 
                                          Fill="{TemplateBinding Foreground}" />
                                </Button>

                            </Grid>
                        </RadioButton>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" SourceName="PART_DropDown" Value="true">
                            <Setter Property="Opacity" TargetName="PART_DropDown" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#ADADAD"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
        </Style.Triggers>
    </Style>


    <!--BWDefault.VerticalLine -->
    <Style TargetType="{x:Type Path}"
           x:Key="BWDefault.VerticalLine">
        <Setter Property="Width"
                Value=".8"/>
        <Setter Property="Stretch"
                Value="Fill" />
        <Setter Property="Data"
                Value="M253,2 L253,22.099751" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="Stroke"
                Value="{DynamicResource BWDefault.LineStroke}" />
        <Setter Property="Margin"
                Value="5,5,5,5" />
    </Style>
    
    <!--BWDefault.SplitButtonVerticalStyle -->
    <Style x:Key="BWDefault.SplitButtonVerticalStyle"
           TargetType="{x:Type Button}"
           BasedOn="{x:Null}">
        <Setter Property="FocusVisualStyle"
                Value="{DynamicResource BWDefault.ButtonFocus}" />
        <Setter Property="Background"
                Value="{DynamicResource BWDefault.ButtonBackground}" />
        <Setter Property="BorderBrush"
                Value="{DynamicResource BWDefault.ButtonBorder}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="MouseOver">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Hover"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000"
                                                      Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="MouseOut">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Hover"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="PressedOn">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Pressed"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="PressedOff">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Pressed"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Grid x:Name="Grid">
                        <Border x:Name="Border"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Padding="{TemplateBinding Padding}"
                                Background="{DynamicResource BWDefault.ButtonBackgroundVertical}"
                                CornerRadius="3,3,3,3"
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderVertical}" />
                        <Border x:Name="Hover"
                                BorderThickness="{TemplateBinding BorderThickness}"                              
                                Background="{DynamicResource BWDefault.ButtonSplitVertiFocus}"
                                CornerRadius="3,3,3,3"
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderVertical}"
                                Opacity="0" >
                            <Path Stretch="Fill"
                                  Fill="{DynamicResource BWDefault.PathCurveSplitVerti}"
                                  Stroke="{x:Null}"
                                  HorizontalAlignment="Stretch"
                                  Data="M-0.16666667,18.833333 L-0.16666667,-0.6663327 124.667,-0.6663327 124.33599,19.175244 C124.33599,19.175244 107.16836,12.667327 62.166833,12.667327 9.8337141,12.667327 -0.16699999,18.832677 -0.16666667,18.833333 z"
                                  VerticalAlignment="Stretch"
                                  />                                
                        </Border>
                        <Border x:Name="Pressed"
                                BorderThickness="{TemplateBinding BorderThickness}"                               
                                Background="{DynamicResource BWDefault.ButtonSplitVertiPressed}"
                                CornerRadius="3,3,3,3"
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderVertical}"
                                Opacity="0" >
                            <Path Stretch="Fill"
                                  Stroke="{x:Null}"
                                  Fill="{DynamicResource BWDefault.PathCurve}"
                                  HorizontalAlignment="Stretch"
                                  Data="M-0.16666667,18.833333 L-0.16666667,-0.6663327 124.667,-0.6663327 124.33599,19.175244 C124.33599,19.175244 107.16836,12.667327 62.166833,12.667327 9.8337141,12.667327 -0.16699999,18.832677 -0.16666667,18.833333 z"
                                  VerticalAlignment="Stretch"
                                  />
                        </Border>
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                          Margin="{TemplateBinding Padding}"
                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                          RecognizesAccessKey="True" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused"
                                 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonFocusBorder}"
                                    TargetName="Border" />
                        </Trigger>
                        <Trigger Property="IsDefault"
                                 Value="True">
                            <Setter Property="Background" TargetName="Border" Value="{DynamicResource BWDefault.ButtonBackground}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver"
                                 Value="true">
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource MouseOver}" />
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="MouseOut_BeginStoryboard"
                                                 Storyboard="{StaticResource MouseOut}" />
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsPressed"
                                 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonPressedBorder}"
                                    TargetName="Pressed" />
                            <Trigger.EnterActions>
                                <BeginStoryboard x:Name="PressedOn_BeginStoryboard"
                                                 Storyboard="{StaticResource PressedOn}" />
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="PressedOff_BeginStoryboard"
                                                 Storyboard="{StaticResource PressedOff}" />
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="true" />
                        <Trigger Property="IsEnabled"
                                 Value="false">
                            <Setter Property="Background"
                                    Value="{DynamicResource BWDefault.ButtonDisableBG}"
                                    TargetName="Border" />
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonDisableBorder}"
                                    TargetName="Border" />
                            <Setter Property="Foreground"
                                    Value="{DynamicResource BWDefault.ButtonDisableForeGround}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground" Value="{DynamicResource BWDefault.ButtonBlackText}"/>
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="MinWidth"
                Value="20" />
        <Setter Property="MinHeight"
                Value="20" />
        <Setter Property="Padding"
                Value="5,1,5,1" />
        <Setter Property="Margin"
                Value="2,0,2,0" />
        <Style.Triggers>
            <Trigger Property="IsDefault"
                     Value="True">
                <Setter Property="FontWeight" Value="Bold"/>
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Foreground" Value="{DynamicResource BWDefault.ButtonBlackText}"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <!--BWDefault.SplitButtonVertical -->
    <Style x:Key="BWDefault.SplitButtonVertical" TargetType="{x:Type Controls:SplitButton}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <!-- SplitButton Template -->
                <ControlTemplate TargetType="{x:Type Controls:SplitButton}">
                    <Grid>
                        <Button x:Name="buttonChrome" 
								HorizontalAlignment="Stretch" 
								VerticalAlignment="Stretch"                              
								Style="{DynamicResource BWDefault.SplitButtonVerticalStyle}"								
								SnapsToDevicePixels="True">
                            <Grid Background="Transparent" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="20"/>
                                </Grid.ColumnDefinitions>
                                <Border x:Name="Bd" Margin="1,2,2,2">
                                    <ContentPresenter
										HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
										VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
										Margin="{TemplateBinding Padding}"
										RecognizesAccessKey="True"
										/>
                                </Border>

                                <Path x:Name="path"
									Data="M 0 0 L 8 4 L 0 8 Z" 
									Margin="4,1,0,-1" 
									Grid.Column="1"
									Stroke="{TemplateBinding Foreground}" 
									Fill="{TemplateBinding Foreground}" 
									HorizontalAlignment="Center" 
									VerticalAlignment="Center"
									/>

                                <Button x:Name="PART_DropDown"
									Background="{TemplateBinding Background}"
									BorderBrush="{TemplateBinding BorderBrush}"
									Foreground="{TemplateBinding Foreground}"
									IsDefault="{TemplateBinding IsDefault}"
									VerticalAlignment="Stretch" 
									HorizontalAlignment="Stretch"
									Grid.Column="1"
									Margin="0,-2,-2,-2"
									Style="{DynamicResource SplitButtonDropDownStyleVerti}"
									Opacity="0">
                                    <Path Data="M 0 0 L 8 4 L 0 8 Z" 
                                          Margin="2,1,0,-1" 
                                          Stroke="{TemplateBinding Foreground}" 
                                          Fill="{TemplateBinding Foreground}" />
                                </Button>

                            </Grid>
                        </Button>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="Mode" Value="Dropdown">
                            <Setter Property="Visibility" TargetName="PART_DropDown" Value="Collapsed"/>
                        </Trigger>
                        <Trigger Property="Mode" Value="Button">
                            <Setter Property="Visibility" TargetName="PART_DropDown" Value="Collapsed"/>
                            <Setter Property="Visibility" TargetName="path" Value="Collapsed"/>
                            <Setter Property="Grid.ColumnSpan" TargetName="Bd" Value="2"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" SourceName="PART_DropDown" Value="true">
                            <Setter Property="Opacity" TargetName="PART_DropDown" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#ADADAD"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
        </Style.Triggers>
    </Style>
    
    <!--BWDefault.SplitButtonDropDownStyleVerti -->
    <Style x:Key="SplitButtonDropDownStyleVerti" TargetType="{x:Type Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid Background="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

                        <Button x:Name="chrome" 
							Style="{DynamicResource BWDefault.SplitButtonDropDownVertical}"
							HorizontalAlignment="Stretch" 
							VerticalAlignment="Stretch"
                            SnapsToDevicePixels="True">
                            <ContentPresenter x:Name="Cp" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Button>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Path.Stroke" TargetName="Cp" Value="#ADADAD"/>
                            <Setter Property="Path.Fill" TargetName="Cp" Value="#ADADAD"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--SplitButtonDropDownVertical-->
    <Style x:Key="BWDefault.SplitButtonDropDownVertical"
           TargetType="{x:Type Button}"
           BasedOn="{x:Null}">
        <Setter Property="FocusVisualStyle"
                Value="{DynamicResource BWDefault.ButtonFocus}" />
        <Setter Property="Background"
                Value="Transparent" />
        <Setter Property="BorderBrush"
                Value="{DynamicResource BWDefault.ButtonBorderSplit}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="MouseOver">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Hover"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000"
                                                      Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="MouseOut">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Hover"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="PressedOn">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Pressed"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="PressedOff">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                           Storyboard.TargetName="Pressed"
                                                           Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Grid x:Name="Grid">
                        <Border x:Name="Border"                                                               
                                Background="Transparent"
                                CornerRadius="1,1,0,0"
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderSplit}" />
                        <Border x:Name="Hover"  
                                CornerRadius="1,1,0,0"
                                Background="{x:Null}"                              
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderSplit}"
                                Opacity="0" />
                        <Border x:Name="Pressed"   
                                CornerRadius="1,1,0,0"
                                Background="{x:Null}"                               
                                BorderBrush="{DynamicResource BWDefault.ButtonBorderSplit}"
                                Opacity="0" />
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"                                          
                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                          RecognizesAccessKey="True" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused"
                                 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonFocusBorder}"
                                    TargetName="Border" />
                        </Trigger>
                        <Trigger Property="IsDefault"
                                 Value="True">
                            <Setter Property="Background" TargetName="Border" Value="{DynamicResource BWDefault.ButtonBackground}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver"
                                 Value="true">
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource MouseOver}" />
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="MouseOut_BeginStoryboard"
                                                 Storyboard="{StaticResource MouseOut}" />
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsPressed"
                                 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonPressedBorder}"
                                    TargetName="Pressed" />
                            <Trigger.EnterActions>
                                <BeginStoryboard x:Name="PressedOn_BeginStoryboard"
                                                 Storyboard="{StaticResource PressedOn}" />
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="PressedOff_BeginStoryboard"
                                                 Storyboard="{StaticResource PressedOff}" />
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="true" />
                        <Trigger Property="IsEnabled"
                                 Value="false">
                            <Setter Property="Background"
                                    Value="{DynamicResource BWDefault.ButtonDisableBG}"
                                    TargetName="Border" />
                            <Setter Property="BorderBrush"
                                    Value="{DynamicResource BWDefault.ButtonDisableBorder}"
                                    TargetName="Border" />
                            <Setter Property="Foreground"
                                    Value="{DynamicResource BWDefault.ButtonDisableForeGround}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground" Value="{DynamicResource BWDefault.ButtonGoldText}"/>
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Style.Triggers>
            <Trigger Property="IsDefault"
                     Value="True">
                <Setter Property="FontWeight" Value="Bold"/>
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Foreground" Value="{DynamicResource BWDefault.ButtonBlackText}"/>
            </Trigger>
        </Style.Triggers>
    </Style>

</ResourceDictionary>